@import "~antd/dist/antd.less";
@import "../styles/screen-sizes";
@import "../styles/custom";

.signup-bg-left {
  position: fixed;
  height: 100%;
  width: 50%;
  top: 0;
  z-index: -1;
  left: 0;
  background: #fff;
}

.signup-bg-right {
  position: fixed;
  height: 100%;
  width: 50%;
  top: 0;
  z-index: -1;
  right: 0;
  background: #fafbfb;

  @media (max-width: @screen-md) {
    display: none;
  }
}

.Signup_main {
  height: 100%;
}

.Signup__container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 1400px;
  margin: 0 auto;
  @media (min-width: @screen-md) {
     height: 100%;
   }
  .Signup__form, .Signup__icons {
    max-width: 600px;
    min-height: 600px;
    width: 100%;
    margin-bottom: 50px;
    padding: 50px;

    @media (max-width: @screen-md) {
      padding: 50px 20px;
      margin-top: 50px;
    }
    .signup_options_wrap{
      p{
        opacity: 0.6;
        font-family: HelveticaNeue;
        font-size: 18px;
        color: #2F2F2F;
        line-height: 24px;
      }
    }
  }

  .Signup__icons {
    text-align: center;
    display: flex;
    align-content: center;
    align-items: center;
    margin-top: 50px;
    &.username-icons {
      flex-direction: column;
    }
    @media (max-width: @screen-md) {
      display: none;
    }
  }

  .Signup__header {
    display: flex;
    justify-content: space-between;
    min-height: 50px;
    flex: 1;
    align-items: flex-start;
    padding-bottom: 1.5rem;

    .Signup__steps {
      display: flex;
      align-items: center;
      margin-top: 15px;

      .Signup__steps-step {
        width: 10px;
        height: 10px;
        line-height: 14px;
        background: #eff4f8;
        display: inline-block;
        border-radius: 5px;
        margin-right: 8px;

        &:last-child {
          margin-right: 0;
        }

        &.waiting {
          width: 14px;
          height: 14px;
          line-height: 14px;
          border-radius: 7px;
          background: @primary-color;
        }

        &.processed {
          background: @primary-color;
        }
      }
    }
  }

  .Signup__form {
    min-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    .signup-options__buttons{
      display: flex;
      margin-top: 5.5rem;
      >div{
        position: relative;
        flex: 1;
        display: flex;
        flex-direction:column;
        align-items: center;
        padding: 3.75rem 1.25rem 1.5rem;
        border: 1px solid rgba(171,171,171,0.30);
        border-radius: .625rem;
        &:first-child{
          margin-right: 2.5rem;
        }
        p{
          margin-bottom: .4rem;
          padding-bottom: 0;
          font-size: 0.875rem;
          color: #ABABAB;
          line-height: 1.25;
        }
        img{
          position: absolute;
          top: 0;
          left: 50%;
          transform: translate(-50%, -60%);
        }
        >div{
          min-height: 7.5rem;
        }
        button{
          padding: 0 .5rem;
        }
      }
      @media (max-width: 500px) {
        flex-direction: column;
        margin-top: 2.5rem;
        >div{
          padding: 3rem 1.25rem 1.5rem;
          &:first-child{
            margin-right: 0;
            margin-bottom: 4rem;
          }
          >div{
            min-height: auto;
          }
        }
      }
    }

    .save-password-wrap{
      .password-wrap{
        padding: 1.25rem;
        margin-bottom: 2.5rem;
        background: rgba(47,47,47,0.04);
        border-radius: 10px;
        word-break: break-all;
      }
      .ant-btn{
        width: 100%;
        height: 3.125rem;
        margin-top: 1.25rem;
        border: 1px solid #1720C9;
        border-radius: 10px;
        font-family: HelveticaNeue-Medium;
        font-size: 1rem;
        color: #1720C9;
        &.ant-btn-primary{
          color: #FFFFFF;
          font-family: HelveticaNeue-Bold;
        }
      }

    }
    .signup-form{
      .ant-form-item-control {
        line-height: 2rem;
      }
      .signup-checkbox{
        display: flex;
        align-items: center;
        font-size: 1rem;
        .ant-checkbox-input{
          width: 1.125rem;
          height: 1.125rem;
        }
        .ant-checkbox-inner{
          width: 1.125rem;
          height: 1.125rem;
          border: 0;
          background: rgba(47,47,47,0.04);
          &:after{
            left: 6px;
            top: 2px;
            width: 6px;
            height: 10px;
          }
        }
        .ant-checkbox-checked{
          .ant-checkbox-inner{
            background-color: #1720C9;
          }
        }
      }
    }

    .user-info-wrap{
      h2{
        padding-bottom: .5rem;
        font-family: HelveticaNeue-Medium;
        font-size: 1.5rem;
        color: #2F2F2F;
      }
      .text{
        opacity: 0.6;
        font-family: HelveticaNeue;
        font-size: 1rem;
        color: #2F2F2F;
        line-height: 1.5;
      }
    }

    .form-actions {
      position: absolute;
      width: calc(~'100% - 100px');

      @media (max-width: @screen-md) {
        width: calc(~'100% - 40px');
        max-width: 460px;
      }
    }

    .form-content {
      max-height: 100%;
      flex: 1;
      margin-top: -30px;

      &.two-actions {
        margin-top: -73px;
      }
    }

    .ant-input {
      color: rgba(51, 51, 51, 0.5);
    }

    .ant-form-item {
      margin-bottom: 10px;
    }

    .ant-btn-primary {
      background-color: @primary-color;
      border-color: @primary-color;
      box-shadow: 0 3px 8px 0 rgba(26, 80, 153, 0.3);
    }

    .ant-select-selection-selected-value {
      color: #333;
      margin-left: 15px;
      font-weight: 600;
    }

    .has-success.has-feedback:after, .has-warning.has-feedback:after, .has-error.has-feedback:after, .is-validating.has-feedback:after {
      font-size: 18px;
    }

    .has-success {
      input {
        border: 1px solid #88d569;
      }
    }

    .has-error {
      input {
        border: 1px solid rgba(243,89,85,0.60);
      }
      .ant-form-explain {
        text-align: left;
        line-height: 1.3;
        font-size: .875rem;
        color: #F35955;
      }
    }

    h1 {
      font-size: 28px;
      color: #2F2F2F;
    }

    h2 {
      font-size: 18px;
      font-weight: 500;
      color: #333;
      padding-bottom: 30px;

      a {
        font-size: 14px;
      }
    }
    p{
      &.text{
        margin-bottom: .5rem;
        padding-bottom: 0;
        opacity: 0.6;
        font-family: HelveticaNeue;
        font-size: 1.125rem;
        color: #2F2F2F;
        line-height: 1.5rem;
        font-weight: normal;
      }
    }

    .ant-form-item-control {
      text-align: center;
    }

    button.back {
      color: @primary-color;
      background: none;
      font-size: 16px;
      border: none;
      &:hover {
        color: @primary-color;
      }
    }

    .password-step {
      .ant-form-item-control {
        text-align: left;
      }
    }

    .confirm-phone, .password-step {
      .ant-input-affix-wrapper .ant-input:not(:last-child) {
        padding-right: 100px;
      }
      .has-success.has-feedback:after, .has-warning.has-feedback:after, .has-error.has-feedback:after, .is-validating.has-feedback:after {
        right: 60px;
      }
    }
    a.new-password, a.redirect-btn {
      text-align: center;
      width: 100%;
      background-color: #fff;
      border: solid 2px @primary-color;
      font-size: 16px;
      font-weight: bold;
      text-transform: uppercase;
      height: 50px;
      color: @primary-color;
      display: block;
      border-radius: 5px;
    }

    a.complete-signup {
      background-color: @primary-color;
      border-color: @primary-color;
      box-shadow: 0 3px 8px 0 rgba(26, 80, 153, 0.3);
      width: 100%;
      color: #fff;
      display: block;
      padding: 0 1.5em;
      font-size: 20px;
      border-radius: 4px;
      height: 50px;
      text-align: center;
      line-height: 50px;

      &:hover {
        text-decoration: none;
        box-shadow: none !important;
      }
    }
  }
}

#signup-username, #signup-password, #signup-error {
  width: 392px;
  height: auto;
  margin: 0 auto;
}

#signup-email {
  width: 300px;
  height: auto;
  margin: 0 auto;
}

#signup-email-confirmation {
  width: 382px;
  height: auto;
  margin: 0 auto;
}

#signup-phone, #signup-sms {
  width: 369px;
  height: auto;
  margin: 0 auto;
}
#signup-create-account {
  width: 320px;
  height: auto;
  margin: 0 auto;
}
.signin_redirect {
  text-align: left;
  font-size: 14px;
}

.welcome-wrap{
  p{
    opacity: 0.6;
    font-family: HelveticaNeue;
    font-size: 1.125rem;
    color: #2F2F2F;
    letter-spacing: 0;
    line-height: 1.5rem;
  }
  .welcome-btn{
    display: block;
    background: #1720C9;
    border-radius: 10px;
    font-family: HelveticaNeue-Bold;
    font-size: 1rem;
    color: #FFFFFF;
  }
}